﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.OrderList" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>

<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>

<form id="pageForm" method="post" class="pageForm" runat="Server">

<!-- 需保存的全局变量，提交时URL参数会丢失 -->
<asp:label runat="server" ID="_isadmin" Visible="False" >是否管理员调用该页面</asp:label>

<div class="pageHeader">
	<div class="searchBar">
		<table class="searchContent" style="width:100%">
		<tr>
			<td>
			    <span>会员帐号&nbsp;</span>
				<asp:TextBox ID="tb_search_memberid" runat="server" cond="memberid" ctltype="textbox"></asp:TextBox>&nbsp;&nbsp;
			</td>
			<td>
			    <span>订 单 号&nbsp;</span>
			    <asp:TextBox ID="tb_search_orderno" runat="server" cond="orderno" ctltype="textbox"></asp:TextBox>&nbsp;&nbsp;
			</td>
		</tr>
		<tr>
			<td>
			    <span>起止时间&nbsp;</span>
				<asp:TextBox ID="tb_search_datebegin" runat="server" class="date" format="yyyy-MM-dd" readonly="true" cond="datebegin" ctltype="textbox" ></asp:TextBox>&nbsp;至
			    <asp:TextBox ID="tb_search_dateend" class="date" format="yyyy-MM-dd" readonly="true" runat="server" cond="dateend" ctltype="textbox"></asp:TextBox>&nbsp;
			</td>
		</tr>
		<tr>
			<td colspan="3">
			    <span>订单状态&nbsp;</span>
				<asp:dropdownlist runat="server" ID="ddl_isconfirmed" cond="isconfirmed" ctltype="dropdownlist" width="150px"></asp:dropdownlist>&nbsp;&nbsp;
				<asp:dropdownlist runat="server" ID="ddl_paystatus" cond="paystatus" ctltype="dropdownlist" width="150px"></asp:dropdownlist>&nbsp;&nbsp;
				<asp:dropdownlist runat="server" ID="ddl_shippingstatus" cond="shippingstatus" ctltype="dropdownlist" width="150px"></asp:dropdownlist>&nbsp;&nbsp;
				<asp:dropdownlist runat="server" ID="ddl_isfinished" cond="isfinished" ctltype="dropdownlist" width="150px"></asp:dropdownlist>&nbsp;&nbsp;
				<asp:dropdownlist runat="server" ID="ddl_iscancelled" cond="iscancelled" ctltype="dropdownlist" width="150px"></asp:dropdownlist>&nbsp;&nbsp;
			</td>
		</tr>
		</table>
		
	    <div class="subBar">
			<ul>
			<li>
			    <a class="buttonActive" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.redirect(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>&nbsp;检&nbsp;索&nbsp;</span></a>
			</li>
			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
            <li><a class="delete" href='/SystemManage/Basics/OrderInfo/OrderProcess.aspx?ajax=dels' target="selectedTodo"title="请确定要删除"><span>删除勾选</span></a></li>
		</ul>
	</div>
	<div class="tableList" layoutH="165">
	<table class="list" width="100%" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="5%" style="display: none">编号</th>
				<th>单号</th>
				<th>下订时间</th>
				<th>实际应付</th>
				<th>会员帐号</th>
				<th>收货人</th>
				<th>订单状态</th>
				<th width="5%">操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="grid">
                <ItemTemplate>
			    <tr target="uid" rel=<%# Eval("Id")%>>
                    <td><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
				    <td style="display: none"><span><%# Eval("Id")%></td>
				    <td><%# Eval("Orderno")%></td>
				    <td><%# Eval("Ordertime")%></td>
				    <td><%# Eval("Totalprice", "{0:0.00}")%></td>
				    <td><%# GetMemberRealName(Eval("MemberAccount"))%></td>
				    <td><%# Eval("Receivername")%></td>
				    <td>
				    <%# ParamKit.GetValue("OrderIsConfirmed", Eval("IsConfirmed"), "&nbsp;")%>
				    <%# ParamKit.GetValue("OrderPayStatus", Eval("PayStatus"), "&nbsp;")%>
				    <%# ParamKit.GetValue("OrderShippingStatus", Eval("ShippingStatus"), "&nbsp;")%>
				    <%# ParamKit.GetValue("OrderIsFinish", Eval("IsFinished"), "&nbsp;")%>
				    <%# ParamKit.GetValue("OrderIsCancel", Eval("IsCancelled"), "&nbsp;")%></td>
				    <td> 
				        <a href="/SystemManage/Basics/OrderInfo/OrderView.aspx?uid=<%# Eval("Id")%>&freshtabid=<%= _framePage.NavTabId %>" target="navTab" title="订单-查看" rel="vieworder">查看</a>&nbsp;&nbsp;
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>
</div>
	
     <%= _framePage.GetPagerContentHtml()%>
</div>
</form>